package com.zrwl.poscloud.commons.vo.charge;

import lombok.Data;

/**
 * @author liuxiaolong
 * @date 2022/8/20
 * @description 缴费金额实时计算
 */
@Data
public class CostComputeVO {

    //1.CostCompute
    //url:"GetByActualCost.do?actualCost="+actualCost+"&chargeType="+chargeType+"&roomId="+$("#roomId").val(),
    //            type:"POST",
    //            contentType: "application/json;charset=utf-8",
    //            dataType:"JSON",
    //            success:function(data){
    //                //alert(data.rechargeInfo.baseCost);
    //                $("#baseCost").textbox("setValue",data.rechargeInfo.baseCost);
    //                $("#heatCost").textbox("setValue",data.rechargeInfo.heatCost);
    //                $("#heatAmount").textbox("setValue",data.rechargeInfo.heatAmount);
    //                $("#curTime").attr("value",data.curTime);
    //                $("#arrearRecordNum").attr("value",data.arrearRecordNum);
    //                //$("input[name=baseCost]").val(data.rechargeInfo.baseCost);
    //            }

    //2.CalPayable
    //function calPayable(tag){
    //        var chargeType = tag;
    //        if(null==chargeType||chargeType==""){
    //            var chargeType = $("input[name='ChargeType']:checked").val();
    //        }
    //        if(null==$("#roomId").val()||$("#roomId").val()==""){
    //            alert("未获取到用户信息，请刷新页面");
    //            return;
    //        }
    //        $.ajax({
    //            url:"GetPayableCost.do?chargeType="+chargeType+"&roomId="+$("#roomId").val(),
    //            type:"POST",
    //            contentType: "application/json;charset=utf-8",
    //            dataType:"JSON",
    //            success:function(data){
    //                //alert(data.rechargeInfo.baseCost);
    //                $("#Payable").textbox("setValue",data.payCost);
    //                //$("input[name=baseCost]").val(data.rechargeInfo.baseCost);
    //            }
    //        });
    //    }
    //注:  CalPayable只需要roomId和chargeType systemUid三个参数

    private String roomId;
    private String actualCost;
    private String chargeType;
    private String systemUid;
}
